# @Time    :2025/3/31 16:31
class Student:
    """这是一个学生类"""
    home = "earth"

    def __init__(self, name, age, gender):
        self.name = name
        self.age = age
        self.gender = gender
    def eat(self):
        print(f"{self.name}分类的eat")

class ChineseStudent(Student):
    """这个是一个中国学生类"""

    def __init__(self, name, age, gender, hobby):
        super().__init__(name, age, gender)
        self.hobby = hobby
    # def eat(self):
    #     print(f"{self.name}子类的eat")

chin = ChineseStudent("王华", 12, "女", "跳舞")
print(chin.name)
chin.eat()
print(chin.home)
